#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main() {
    int n = 0;
    scanf("%d", &n);
    int a = 0;
    double count = 0.0;
    while (n--)
    {
        scanf("%d", &a);
        if (a > 60)
            count += 0.2;
        else
            count += 0.1;
    }
    printf("%.1lf", count);

    return 0;
}

